package org.harlov.testsys.db.suppdata;

import java.sql.Array;
import java.sql.SQLException;

public class quest_struct {
	private	int			id 		= 0; //ID
	private int			o_test = 0;//owner test
	private	String		q_text 	= ""; //Вопрос
	private String[]	t_ans = null; //Правильные ответы
	private String[]	f_ans = null;//Неправильные ответы
	private int quests_count = 0;
	
	
	public quest_struct(int _id,int _o_test,String _q_text,Array _t_ans,Array _f_ans, int _quests_count) {
		id = _id;
		o_test = _o_test;
		q_text = _q_text;
		quests_count = _quests_count;
		try {
			if (_t_ans!= null) 
				t_ans = (String[])_t_ans.getArray();
			if (_f_ans!= null) 
				f_ans = (String[])_f_ans.getArray();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
	
	
	public int getId() {
		return id;
	}
	
	public String[] getTAns() {
		return t_ans;
	}
	
	public String[] getFAns() {
		return f_ans;
	}
	
	public String getText() {
		return q_text;
	}
	
	public int getOTest() {
		return o_test;
	}
	
	public int getQuestsCount() {
		return quests_count;
	}
	
	
	
	

}
